
ROOT_DEPTH = ../..

include $(ROOT_DEPTH)/config/makeinclude/platform.make

ifeq (1, $(x86_64))
  USER_DEPTH = ../../bin/x86
else
  USER_DEPTH = ../..
endif

USER_BIN = pvroom

USER_SRCS =	chatmain.cpp \
		roomchat.cpp \
		
USER_INCLDIRS = -I../h \
		-I../common/h \
		-I../util/h\
		-I$(MYSQL_HOME)
		
USER_LINK_LIBS = \
	$(USER_DEPTH)/bin/libroommodule.a \
	$(USER_DEPTH)/bin/libcommonpdu.a \
	$(USER_DEPTH)/bin/libjson.a \
	$(NULL)

ifeq ($(flow_control), 1)
	USER_DEFFLAGS += -D__INFO_ENABLE_FLOW_CONTROL__
endif

USER_LINK_DLLS = -lmysqlclient \
		 -lmemcached \
		 -L$(USER_DEPTH)/bin/ -lrc \
		 -L$(USER_DEPTH)/bin/ -lpq \


USER_LINK_LIBS += \
	$(USER_DEPTH)/bin/libconnmgr.a \
	$(USER_DEPTH)/bin/libnetwork.a \
	$(USER_DEPTH)/bin/libframework.a \
	$(USER_DEPTH)/bin/libdbthread.a \
	$(NULL)

#leak check compile option
ifeq ($(leak_check), 1)
	USER_DEFFLAGS += -DLEAK_CHECK
endif



USER_LIB_DIR = $(USER_DEPTH)/bin


include $(ROOT_DEPTH)/config/makeinclude/all_in_one.make
